<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>骡窝窝问答</title>
    <meta name="viewport"
          content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no,minimal-ui,viewport-fit=cover"/>
    <meta name="copyright" content="Copyright (c) 2006-2019 Mafengwo."/>
    <meta name="format-detection" content="telephone=no,address=no"/>
    <meta name="referrer" content="always"/>
    <meta name="apple-mobile-web-app-capable" content="no"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="no"/>
    <meta property="og:title" content="骡窝窝窝问答,解决旅行问题,基于旅游的问答分享平台"/>
    <meta property="og:url" content="https://m.mafengwo.cn/wenda/"/>
    <meta property="og:image" content="https://images.mafengwo.net//mobile/images/mfw-logo-new.png"/>
    <meta property="og:description" content="骡窝窝问答,解决旅行问题,基于旅游的问答分享平台。"/>
    <link rel="apple-touch-icon" href="https://images.mafengwo.net/mobile/images/mfw-logo-new.png"/>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <link rel="stylesheet" href="/js/bootstrap-4.1.1-dist/css/bootstrap.min.css">
    <script src="/js/jquery/jquery.min.js"></script>
    <script src="/js/bootstrap-4.1.1-dist/js/bootstrap.min.js"></script>
    <link rel="stylesheet" href="/css/font/css/font-awesome.min.css"/>
    <link rel="stylesheet" href="/css/reset.css"/>
    <link rel="stylesheet" href="/css/strategyCatalogs.css"/>
    <script src="/js/plugins/jrender/jrender.min.js"></script>
    <link rel="stylesheet" href="/js/plugins/dialog2/dialog.css"/>
    <script src="/js/plugins/dialog2/dialog.min.js"></script>
    <script src="/js/common.js"></script>
    <script src="/js/queryAndBlankComment.js"></script>
    <script src="/js/checkLogin.js"></script>
    <script src="/js/plugins/mdialog/mDialog.js"></script>
    <link rel="stylesheet" href="/css/dialog.css"/>
    <link rel="stylesheet" href="/js/bootstrap-3.3.7-dist/css/bootstrap.css">
    <script type="text/javascript">
        window.Env = {
            "CNZZID": 30081550,
            "IS_MOBILE": true,
            "WWW_HOST": "www.mafengwo.cn",
            "IMG_HOST": "images.mafengwo.net",
            "W_HTTP": "https:\/\/w.mafengwo.cn",
            "P_HOST": "passport.mafengwo.cn",
            "P_HTTP": "https:\/\/passport.mafengwo.cn",
            "PAGELET_HTTP": "https:\/\/pagelet.mafengwo.cn",
            "JS_HOST": "js.mafengwo.net",
            "TONGJI_HOST": "tongji.mafengwo.cn",
            "UID": 83770902,
            "CSTK": "06ad5bf16c76cf2a0d98b50b58d29bc8_a405849cb5fb5933bf95c25889d3e013",
            "GOOGLE_MAP_KEY": "AIzaSyD-Su0x_rPy1xehlMBcMyTqWkU49Bk53nQ",
            "MOBILE_BINDED": true
        };
    </script>
    <link href="https://css.mafengwo.net/css/cv/mobile+css+head:mobile+css+ui^YVw^1550829726.css" rel="stylesheet"
          type="text/css"/>
    <link href="https://css.mafengwo.net/mobile/css/ask/new_ask2016.css?1550829726" rel="stylesheet" type="text/css"/>
    <script>
        $(function () {
            //用于点击查询
            function queryAndBlankForComment(queryUrl, obj) {
                if (loading) {
                    //当有查询任务在进行时,关闭可查询开关
                    loading = false;
                    $.get(queryUrl, {currentPage: currentPage}, function (data) {
                        console.log(data);
                        //合并两个数组到第一个数组上
                        $.merge(travels, data.list);
                        //将travels数组再进行包装,主要将它封装到list变量中,便于渲染时读取变量
                        var json = {list: travels};
                        //使用jrender进行数据渲染
                        obj.renderValues(json, {
                            getHref: getHref
                        });
                        //当前页自增
                        currentPage++;
                        //总页数
                        pages = data.pages;
                        //当查询结束之后,打开查询开关
                        loading = true;
                        // 点击回复按钮弹出输入框
                        $(".btn-reply").click(function () {
                            inputComment();
                            parentId = $(this).val();
                            console.log(parentId);
                        });
                    });
                }
            }

            //分页查询问题
            queryAndBlankForComment(baseUrl + '/questions', $(".a-list"));

            //点击加载按钮,加载下一页
            $(".more-list").click(function () {
                if (currentPage <= pages) {
                    queryAndBlankForComment(baseUrl + '/questions', $(".a-list"));
                    var toast5 = $(document).dialog({
                        type: 'toast',
                        infoIcon: '/img/icon/loading.gif',
                        infoText: '正在加载中',
                    });

                    setTimeout(function () {
                        toast5.update({
                            infoIcon: '/img/icon/success.png',
                            infoText: '加载成功',
                            autoClose: 700,
                        });
                    }, 2000);
                } else {
                    $(document).dialog({
                        type: 'toast',
                        infoIcon: '/img/icon/fail.png',
                        infoText: '没有更多内容了!',
                        autoClose: 1500
                    });
                    $(".more-list").html("已经加载完了");
                }
            });
        });
    </script>

</head>
<body>
<div id="pos38"></div>
<header class="MfwHead ">
    <div class="LBtn"><a class="btn back"
                         href="javascript:void(window.history.length > 1 ? window.history.back() : document.location.href='http://m.mafengwo.cn')"
                         id="_j_top_history_back"></a>
    </div>
    <div class="CBtn"><h1>骡窝窝问答</h1></div>
</header>


<input type="hidden" id="_j_param" data-type="1" data-sort="10" data-key="" data-mddid="" data-tid="" data-more="1">
<div>
    <a href="/g/i/11289526.html">
        <img src="/img/icon/h5_banner.jpg" style="width: 100%">
    </a>
</div>
<section class="ans-list a-list">
    <ul class="_j_pager_box">
        <div render-loop="list">
            <li>
                <a render-fun="getHref" render-key="list.id" data-url="/mine/answer.html?id=">

                    <div class="clearfix">
                        <div class="user-img clearfix" data-uid="84824252">
                            <p>
                                <img render-src="list.user.headImgUrl">
                            </p>
                            <span render-html="list.user.nickName"></span>
                            <span class="glyphicon glyphicon-time" render-html="list.createTime"></span>
                        </div>
                        <div class="ans-nr">
                            <div class="clearfix">
                                <span><h2 render-html="list.content">旅行中能拍出大片范儿的衣服有哪些？</h2></span>
                                <span>
                                    <div>
                                        <img render-src="list.imgUrl" width="150px"/>
                                    </div>
                                </span>
                                <br>
                                <span class="glyphicon glyphicon-map-marker"
                                      render-html="list.region.name">全球</span>
                            </div>
                            <div class="clearfix">
                                <span class="fl-r glyphicon glyphicon-ok-sign"><b render-html="list.ansNum">1711</b>个回答</span>
                            </div>
                        </div>
                    </div>
                </a>
            </li>
        </div>
    </ul>
    <div style="margin-bottom: 65px;">
        <a class="more-list _j_add_more_button">更多问题</a>
    </div>
</section>

<section class="askfoot"><a href="/mine/publish.html" class="btn-que" data-cs-p="show_publish"><i></i>
    我要提问

</a></section>

<script language="javascript" type="text/javascript">
    if (typeof M !== "undefined" && typeof M.loadResource === "function") {
        M.loadResource("https://js.mafengwo.net/js/cv/mobile+js+wenda+QaMCommon:js+jquery.tmpl:js+M+module+InputListener:js+M+module+SuggestionXHR:js+M+module+DropList:js+M+module+Suggestion:mobile+js+wenda+QaMSearch:mobile+js+BindMobilePop:mobile+js+ALogin:js+ACnzzGaLog:js+ARecruit:js+ALazyLoad:mobile+js+wakeApp:mobile+js+omc.global^YV1S^1558975785.js");
    }
</script>

</body>
</html>
